<%-- 
    Document   : dados.jsp
    Created on : 20/06/2013, 10:46:50
    Author     : Eduardo
--%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="Model.*"%>
<%@page import="Controller.*"%>
<%@page import="java.sql.*" %> 
<%@page import="java.io.*" %>

<%
    String id = session.getAttribute("id").toString();
    Query q = new Query();
    Professor rs = q.getProf(id);

%>

<div class="modal-header">  
    <a class="close" data-dismiss="modal">×</a>  
    <h3>Editar dados: <% out.println(rs.getNome());%></h3>
</div>  
<div class="modal-body">
    <div id="info"></div>
    <div class="tabbable">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#tab1" data-toggle="tab">Dados</a></li>
            <li><a href="#tab2" data-toggle="tab">Preferências</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="tab1">
                <dl class="dl-horizontal">
                    <dt>Siape:</dt>
                    <dd><% out.println(rs.getSiape());%></dd>
                    <dt>Nome:</dt>
                    <dd><% out.println(rs.getNome());%></dd>
                    <dt>E-mail:</dt>
                    <dd><% out.println(rs.getEmail());%></dd>
                    <dt>Carga horaria:</dt>
                    <dd><% out.println(rs.getDedicacao());%></dd>
                    <dt>Turmas atuais:</dt>
                    <dd>...</dd>
                </dl>
            </div>

        </div>
    </div>
</div>  
<div class="modal-footer">  
    <a class="btn btn-success" id="salvaPref">Salvar</a>  
    <a class="btn btn-inverse" id="fechar" data-dismiss="modal">Fechar</a>  
</div>
<script src="js/dados.js"></script> 
<% }%>
